//
//  HttpUploadFile.m
//  Test
//
//  Created by admin on 2019/4/26.
//  Copyright © 2019 admin. All rights reserved.
//

#import "HttpUploadFile.h"

@implementation HttpUploadFile

+ (instancetype)fileConfigWithfileData:(NSData *)fileData name:(NSString *)name fileName:(NSString *)fileName mimeType:(NSString *)mimeType
{
    HttpUploadFile *tmp = [HttpUploadFile new];
    tmp.fileData = fileData;
    tmp.name = name;
    tmp.fileName = fileName;
    tmp.mimeType = mimeType;
    
    return tmp;
}

- (instancetype)initWithfileData:(NSData *)fileData name:(NSString *)name fileName:(NSString *)fileName mimeType:(NSString *)mimeType
{
    self = [super init];
    if (self)
    {
        self.fileData = fileData;
        self.fileName = fileName;
        self.name = name;
        self.mimeType = mimeType;
    }
    return self;
}

@end
